import http from "./http.js";

/**
 * 获取数据库中所有表
 * @returns {Promise<axios.AxiosResponse<any>>}
 * @constructor
 */
export const GetTableList = (params)=>http.get("/generator/list",{
    params
})

export const GetTableColumn = (params)=>http.get("/generator/"+params)
export const GetSettings = ()=>http.get("/generator/setting")
export const Generator = (FromData)=>http.post("/generator/generator",FromData)

export const Change = (FromData)=>http.put("/generator/change",FromData)

export const test = (data)=>http.get("http://192.168.151.120:8080/file/PageFile",{
    params:data
})